package com.example.nophase.activity.staff;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.ListView;
import com.example.nophase.R;
import com.example.nophase.adapter.LookWageGroupaAdapter;
import com.example.nophase.entity.WageGroup;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;

public class LookOverWageGroupMsgActivity extends AppCompatActivity {
    @BindView(R.id.applyfor_toolbar)
    Toolbar applyforToolbar;
    @BindView(R.id.finance_lv)
    ListView financeLv;
    private List<WageGroup> list;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_look_over_wage_group_msg);
        ButterKnife.bind(this);
        list = new ArrayList<>();
        list.add(new WageGroup("王操南","沧洲城市公司","沧州渤海新区南大港碧桂园一期货量区三标段总承包工程"));
        list.add(new WageGroup("王操南","沧洲城市公司","青县翡翠郡一期"));
        list.add(new WageGroup("王操南","沧洲城市公司","黄骅君邸项目货量区二标段"));
        list.add(new WageGroup("王操南","沧洲城市公司","沧州碧桂园.江山印"));
        list.add(new WageGroup("王操南","沧洲城市公司","江山樾"));
        list.add(new WageGroup("王操南","沧洲城市公司","商业项目"));
        list.add(new WageGroup("王操南","沧洲城市公司","盐山樾熙台项目"));
        list.add(new WageGroup("王操南","衡水城市公司","衡水饶阳项目（联营）"));
        list.add(new WageGroup("王操南","衡水城市公司","衡水饶阳碧桂园二标段"));
        list.add(new WageGroup("王操南","衡水城市公司","衡水公园一号二期"));
        list.add(new WageGroup("王操南","天津城市公司","碧雅欣苑项目一标段"));
        list.add(new WageGroup("王操南","天津城市公司","碧雅欣苑项目二标段"));
        list.add(new WageGroup("王操南","天津城市公司","海棠苑项目一标段"));
        list.add(new WageGroup("王操南","天津城市公司","海棠苑项目二标段"));
        list.add(new WageGroup("王操南","天津城市公司","润泽家园项目"));
        list.add(new WageGroup("王操南","天津城市公司","云璟华庭项目"));
        list.add(new WageGroup("王操南","武安城市公司","武安翡翠湾项目"));
        list.add(new WageGroup("杜蕊","辽东区域","锦州一期二标段"));
        list.add(new WageGroup("杜蕊","辽东区域","锦州二期一区一标段"));
        list.add(new WageGroup("杜蕊","辽东区域","锦州二期二区"));
        list.add(new WageGroup("杜蕊","辽东区域","瓦房店上璟云著一期"));
        list.add(new WageGroup("杜蕊","辽东区域","瓦房店上璟云著二期一标段"));
        list.add(new WageGroup("杜蕊","辽东区域","铁岭御和苑项目"));
        list.add(new WageGroup("杜蕊","辽东区域","道义2-7-1项目"));
        list.add(new WageGroup("杜蕊","辽东区域","苏家屯三分厂项目"));
        list.add(new WageGroup("杜蕊","华北一职能","华北一职能"));
        list.add(new WageGroup("时春玲","京冀区域","广厦宜居项目"));
        list.add(new WageGroup("时春玲","京冀区域","赤峰项目"));
        list.add(new WageGroup("时春玲","京冀区域","云溪苑项目"));
        list.add(new WageGroup("时春玲","京冀区域","颐湖花苑项目"));
        list.add(new WageGroup("时春玲","京冀区域","丰宁玖礼台小区9#、19#楼项目"));
        list.add(new WageGroup("时春玲","京冀区域","丰宁玖礼台小区1、2、3、5、7、8#项目"));
        list.add(new WageGroup("时春玲","京冀区域","滦平金山岭长城河谷项目一期七标段"));
        list.add(new WageGroup("时春玲","京冀区域","忆西湖三期（颐湖佳苑）项目"));
        list.add(new WageGroup("时春玲","京冀区域","兴隆一标项目"));
        list.add(new WageGroup("时春玲","京冀区域","蔚县碧桂园首府货量区四标段"));
        list.add(new WageGroup("李明怡","邢台城市公司","邢台八标段项目、邢台桥西项目"));
        list.add(new WageGroup("李明怡","石家庄城市公司","辛集天誉项目、辛集天玺项目、沧州项目、晋州云湖项目"));
        list.add(new WageGroup("李明怡","唐山区域","遵化遵府二期项目、恋乡小镇68、69区、恋乡小镇66区、乡居假日项目、唐山丰南碧桂园湖岸名邸项目"));
        list.add(new WageGroup("李明怡","邯郸城市","邯郸高开区项目"));
        list.add(new WageGroup("李明怡","临城城市","临城首府碧桂园"));
        list.add(new WageGroup("冯素芳","苏南片区",""));
        list.add(new WageGroup("冯素芳","苏南片区",""));
        list.add(new WageGroup("冯素芳","苏北片区",""));
        list.add(new WageGroup("冯素芳","山东片区",""));
        list.add(new WageGroup("冯素芳","苏东城市公司",""));
        list.add(new WageGroup("冯素芳","华中一职能",""));
        list.add(new WageGroup("徐雷","济宁区域","济宁·高新区项目"));
        list.add(new WageGroup("徐雷","济宁区域","济宁·曲阜项目"));
        list.add(new WageGroup("徐雷","济宁区域","济宁·太白湖项目"));
        list.add(new WageGroup("徐雷","长垣项目","长垣项目"));
        list.add(new WageGroup("徐雷","菏泽城市公司","菏泽·炫乐城项目"));
        list.add(new WageGroup("徐雷","菏泽城市公司","菏泽·郭庄项目"));
        list.add(new WageGroup("徐雷","枣庄城市公司","枣庄项目"));
        list.add(new WageGroup("徐雷","小屯项目","小屯项目"));
        list.add(new WageGroup("徐雷","叉河项目","叉河项目"));
        list.add(new WageGroup("徐雷","新泰项目","新泰项目"));
        list.add(new WageGroup("徐雷","豫西项目","豫西项目"));
        list.add(new WageGroup("徐雷","宜阳项目","宜阳项目"));
        list.add(new WageGroup("徐雷","孟津项目","孟津项目"));
        list.add(new WageGroup("徐雷","华中二分公司（含老项目）","华中二分公司（含老项目）"));
        list.add(new WageGroup("王慧","华中三分公司","阜阳项目"));
        list.add(new WageGroup("王慧","华中三分公司","亳州项目"));
        list.add(new WageGroup("王慧","华中三分公司","华中三分公司"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","广西区域"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","上思项目"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","东兴项目"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","防城港一期A标"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","防城港滨海假日B标"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","浦北项目"));
        list.add(new WageGroup("庞其艳","广西区域城市公司","灵山项目"));
        list.add(new WageGroup("王哲","粤东北区域","职能"));
        list.add(new WageGroup("王哲","粤东北区域","潮州金塘路项目"));
        list.add(new WageGroup("王哲","粤东北区域","潮州智能卫浴项目"));
        list.add(new WageGroup("王哲","粤东南区域","职能"));
        list.add(new WageGroup("王哲","汕尾城市公司","职能"));
        list.add(new WageGroup("王哲","汕尾城市公司","华附B1、B2标段"));
        list.add(new WageGroup("王哲","汕尾城市公司","华附C1标段"));
        list.add(new WageGroup("王哲","汕尾城市公司","碧桂园·星钻A标段"));
        list.add(new WageGroup("王哲","惠州城市公司-惠城片区","职能"));
        list.add(new WageGroup("王哲","惠州城市公司-惠城片区","领峰花园项目"));
        list.add(new WageGroup("王哲","惠州城市公司-惠深片区","职能"));
        list.add(new WageGroup("王哲","惠州城市公司-惠深片区","滨江府项目"));
        list.add(new WageGroup("王哲","番禺项目","番禺项目"));
        list.add(new WageGroup("王哲","南沙项目","南沙项目"));
        list.add(new WageGroup("王哲","机器人项目","机器人项目"));
        list.add(new WageGroup("王哲","华南一外拓业务","华南一外拓业务"));
        list.add(new WageGroup("王哲","粤西区域","粤西职能"));
        list.add(new WageGroup("王哲","粤西区域","遂溪"));
        list.add(new WageGroup("王哲","粤西区域","徐闻"));
        list.add(new WageGroup("王哲","粤西区域","黄坡"));
        list.add(new WageGroup("王哲","粤西区域","麻章城邦花园项目"));
        list.add(new WageGroup("王哲","粤西区域","麻章星钻阁项目"));
        list.add(new WageGroup("王哲","阳江城市公司","阳西月亮湾C01-D地块项目"));
        list.add(new WageGroup("颜鸿曦","长沙城市公司","湘江智谷项目"));
        list.add(new WageGroup("赵鑫钰","/","诸暨大唐碧桂园三期-3项目"));
        list.add(new WageGroup("赵鑫钰","/","余姚泗门嘉悦城项目"));
        list.add(new WageGroup("赵鑫钰","/","丽水莲都项目"));
        list.add(new WageGroup("赵鑫钰","/","丽水莲都岩泉项目"));
        list.add(new WageGroup("谭杰","职能中心","职能中心"));
        LookWageGroupaAdapter adapter= new LookWageGroupaAdapter(list,this);
        financeLv.setAdapter(adapter);
        adapter.notifyDataSetChanged();
        initToolbar();

    }

    private void initToolbar() {
        applyforToolbar.setTitle("");
        //设置导航图标要在setSupportActionBar方法之后
        setSupportActionBar(applyforToolbar);
        applyforToolbar.setNavigationIcon(R.drawable.ic_left_black_24dp);
        getSupportActionBar().setHomeButtonEnabled(true);


    }



    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {

            case android.R.id.home:
                this.finish();
                return true;

        }
        return super.onOptionsItemSelected(item);
    }
}